import java.io.*;
import java.util.*;

public class Main{
    public static String reverseL(String s,int l,int r){ // [L,R)
        String ans = "";
        boolean fst0 = true;
        for(int i=r-1;i>=l;i--){
            if(fst0 && s.charAt(i)=='0') continue;
            fst0 = false;
            ans += s.charAt(i);
        }
        if(ans=="")ans = "0";
        return ans;
    }
    public static String reverseR(String s,int l,int r){
        String ans = "";
        boolean lst0 = true;
        for(int i=l;i!=r;i++){
            if(lst0 && s.charAt(i)=='0') continue;
            lst0 = false;
            ans = s.charAt(i) + ans;
        }
        if(ans=="") ans="0";
        return ans;
    }
    public static void main(String[]args){
        Scanner cin = new Scanner(System.in);
        String s = cin.nextLine();
        cin.close();
        /*
        if you code like this, you will get a RE in luogu.org (why?)
        String s = args[0];
        */
        if(s.charAt(s.length()-1)=='%'){
            System.out.println(reverseL(s,0,s.length()-1)+"%");
            return;
        }

        int type = 0, pos = -1;
        for(int i=0;i!=s.length();i++){
            char ch = s.charAt(i);
            if(ch=='.'||ch=='/'){
                if(ch=='.') type = 1;
                else type = 2;
                pos = i;
                break;
            }
        }

        switch(type){
            case 0:{//int
                System.out.println( reverseL(s,0,s.length()) );
                break;
            }
            case 1:{// double
                System.out.println( reverseL(s,0,pos)+"."+reverseR(s,pos+1,s.length()));
                break;
            }
            default:{// 1/2
                System.out.println( reverseL(s,0,pos)+"/"+reverseL(s,pos+1,s.length()) );
                break;
            }
        }
    }
}